package org.smile.homework03.arthas.bank;

public class Application {
    public static void main(String[] args) {
        Clerk president = new Clerk("Devid");
        president.addSupervisor(new Supervisor("S1"));
        president.addSupervisor(new Supervisor("S2"));
        president.addSupervisor(new Supervisor("S3"));

        Clerk manager = new Clerk(president,"Bob", 50000);
        manager.addSupervisor(new Supervisor("S4"));
        manager.addSupervisor(new Supervisor("S5"));

        Clerk counter  = new Clerk(manager,"Tom",10000);
        counter.addSupervisor(new Supervisor("S6"));

        int number = 400;
        counter.handleRequest(number);
        counter.handleObtain(number);
    }
}
